package com.lxc.graduation.controller;

import com.lxc.graduation.entity.response.DocumentDetails;
import com.lxc.graduation.service.DocumentDetailsService;
import com.lxc.graduation.utils.JsonData;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 13:00 2021/3/7
 */
@RestController
@RequestMapping("/api/pub/v1/document_details")
public class DocumentDetailsController {
    @Autowired
    private DocumentDetailsService documentDetailsService;
    @RequestMapping("/listById")
    public JsonData listAllDetails(Integer id)
    {
        DocumentDetails documentDetails = documentDetailsService.listById(id);
        return JsonData.buildSuccess(documentDetails);
    }
}
